/*
 * MainWindow.h
 *
 *  Created on: 20.09.2012
 *      Author: Sergey
 */

#ifndef MAINWINDOW_H_
#define MAINWINDOW_H_

#include <qmainwindow.h>
#include "NewDownloadDialog.h"
#include "Download.h"

class MainWindow: public QMainWindow {
	Q_OBJECT

	QAction *removeAct;
	QAction *stopAct;
	QAction *startAct;
public:
	MainWindow();

signals:
	void save();
	void settingsChanged();

private slots:
	void showNewDownloadDialog();
	void closeEvent(QCloseEvent * event);
	void setStartDownloadActionEnabled(bool enabled);
	void setStopDownloadActionEnabled(bool enabled);
	void setRemoveDownloadActionEnabled(bool enabled);
	void openSettings();
};

#endif /* MAINWINDOW_H_ */
